package com.example.taobaou.utils;

import com.example.taobaou.presenter.IOnSellPagePresenter;
import com.example.taobaou.presenter.ISearchPresenter;
import com.example.taobaou.presenter.impl.CategoryPagerPresenterImpl;
import com.example.taobaou.presenter.impl.HomePresenterImpl;
import com.example.taobaou.presenter.impl.OnSellPagePresenterImpl;
import com.example.taobaou.presenter.impl.SearchPresenter;
import com.example.taobaou.presenter.impl.SelectedPagePresenterImpl;
import com.example.taobaou.presenter.impl.TicketPresenterImpl;
import com.example.taobaou.view.IOnSellPageCallback;

public class PresenterManager {
    private static final PresenterManager ourInstance = new PresenterManager();
    private final CategoryPagerPresenterImpl categoryPagerPresenter;
    private final HomePresenterImpl homePresenterImol;
    private final TicketPresenterImpl ticketPresenter;
    private final SelectedPagePresenterImpl selectedPagePresenter;
    private final OnSellPagePresenterImpl onSellPagePresenter;
    private final SearchPresenter searchPresenter;

    public CategoryPagerPresenterImpl getCategoryPagerPresenter() {
        return categoryPagerPresenter;
    }

    public HomePresenterImpl getHomePresenterImol() {
        return homePresenterImol;
    }

    public TicketPresenterImpl getTicketPresenter() {
        return ticketPresenter;
    }

    public SelectedPagePresenterImpl getSelectedPagePresenter() {
        return selectedPagePresenter;
    }

    public OnSellPagePresenterImpl getOnSellPagePresenter() {
        return onSellPagePresenter;
    }

    public static PresenterManager getInstance() {
        return ourInstance;
    }

    public SearchPresenter getSearchPresenter() {
        return searchPresenter;
    }

    private PresenterManager() {
        categoryPagerPresenter = new CategoryPagerPresenterImpl();
        homePresenterImol = new HomePresenterImpl();
        ticketPresenter = new TicketPresenterImpl();
        selectedPagePresenter = new SelectedPagePresenterImpl();
        onSellPagePresenter = new OnSellPagePresenterImpl();
        searchPresenter = new SearchPresenter();
    }
}
